package di.ex.annotation;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

@Component
public class Zoo {
	@Resource(name="lion")
	private Animal animal;

	public Animal getAnimal() {
		return animal;
	}

	public void setAnimal(Animal animal) {
		this.animal = animal;
	}

	@Override
	public String toString() {
		return "Zoo [animal=" + animal + "]";
	}
	
	


}
